package com.youlin.dto.req;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.lang.Nullable;
import java.time.LocalDate;
import java.time.LocalTime;
import java.util.List;

@NoArgsConstructor
@Data
@Accessors(chain=true)
public class EditAMReqDto {

    @Nullable
    @ApiModelProperty(value="预约记录ID, 新建时不填，修改时必填", position = 10)
    private Integer amId;

    @ApiModelProperty(value="逝者姓名", required = true, position = 30)
    private String deadName;

    @ApiModelProperty(value="逝者性别：0-男、1-女", required = true, position = 40)
    private Integer deadGender;

    @ApiModelProperty(value="逝者生日", required = true, dataType = "java.lang.String", example = "1949-10-01", position = 50)
    private LocalDate deadBirthday;

    @ApiModelProperty(value="逝者忌日", required = true, dataType = "java.lang.String", example = "2021-01-01", position = 60)
    private LocalDate deadDeadday;

    @ApiModelProperty(value="告别厅ID", required = true, position = 70)
    private Integer fhId;

    @ApiModelProperty(value="告别厅预约使用日期", required = true, dataType = "java.lang.String", example = "2021-01-23", position = 80)
    private LocalDate useDate;

    @ApiModelProperty(value="告别厅预约使用开始时间", required = true, dataType = "java.lang.String", example = "08:08:08", position = 90)
    private LocalTime startTime;

    @ApiModelProperty(value="告别厅预约使用结束时间", required = true, dataType = "java.lang.String", example = "08:08:18", position = 100)
    private LocalTime endTime;

    @ApiModelProperty(value="承办人集合", required = true, position = 110)
    private List<EditUTReqDto> takers;

}
